projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ba55d8
)
inspector: Annotate a call whose return value we don't need
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 17 Jul 2015 19:55:18 +0000
(15:55 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 17 Jul 2015 20:11:16 +0000
(16:11 -0400)
The way this code is written, we know that there is an item in
the hash table and the iter_next call will give it to us, so
no need to check the return value. Annotate the call to tell
coverity.
gtk/inspector/gestures.c
patch
|
blob
|
history
diff --git
a/gtk/inspector/gestures.c
b/gtk/inspector/gestures.c
index e62d408b2fc603c8d87809f6bd494ebfd81d8825..b6e87d9f0b4209a9641f62588546e61a20ece649 100644
(file)
--- a/
gtk/inspector/gestures.c
+++ b/
gtk/inspector/gestures.c
@@
-218,7
+218,7
@@
gtk_inspector_gestures_set_object (GtkInspectorGestures *sl,
gpointer key, value;
GtkGesture *gesture;
g_hash_table_iter_init (&iter, hash);
- g_hash_table_iter_next (&iter, &key, &value);
+
(void)
g_hash_table_iter_next (&iter, &key, &value);
gesture = key;
add_gesture_group (sl, object, gesture, hash);
}